﻿using ProTrack.Entity;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace ProTrack.IServices.StoreHouse
{
    public interface IWmWarehouseLocationServices
    {
        //新增
        public Task<bool> AddAsync(WmWarehouseLocation model);
        //修改
        public Task<bool> UpdateAsync (WmWarehouseLocation model);
        //查询所有
        public Task<IEnumerable<WmWarehouseLocation>> GetAllAsync();
        //分页
        public Task<IEnumerable<WmWarehouseLocation>> GetAsync(int PageIndex, int PageSize, string LocationNumber, string LocationName);
        public Task<int> GetCountAsync(string LocationNumber, string LocationName);
        //删除
        public Task<bool> DeleteAsync(int Id);
        //批量删除
        public Task<bool> DeleteAsync(int[] Ids);
    }
}
